package com.heima.controller;

import com.heima.common.result.Result;
import com.heima.pojo.entity.Business;
import com.heima.service.BusinessService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * \* User: chy
 * \* Date: 2025/8/18  20:25
 * \* Description:
 * \
 */
@RestController
@RequestMapping("/api/vm-service/businessType")
@Slf4j
public class BusinessController {

    @Autowired
    private BusinessService businessService;

    /**
     * 查询商圈列表
     * @return
     */
    @GetMapping
    public List<Business> listResult(){
        log.info("查询商圈列表");
      List<Business> list =  businessService.list();
      return list;
    }
}
